package com.itqf.controler;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itqf.service.SensitiveWordService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/9
 * @Time: 下午2:18
 */
@RestController
public class MyTalkController {

    @Reference(version = "3.0")
    private SensitiveWordService sensitiveWordService;

    @RequestMapping("/send")
    public Map talk(String content){
        String s = sensitiveWordService.toHarmonious(content);
         Map map = new HashMap();
         map.put("code",0);
         map.put("result",s);
        return  map;
    }


}
